package com.example.demo.enums;

/**
 * @author : 杨丽辉
 * @date : 2021/2/23 17:45
 * @description:
 */
public enum ErrCodeEnum {
    unknown_0(0, "操作成功"),
    unknown_9999(9999, "未知异常"),
    unknown_4444(4444, "找不到请求的类型"),
    unknown_5555(5555, "登录授权失败"),
    unknown_1000(1000, "验证码失效"),
    unknown_1001(1001, "验证码错误"),
    unknown_1002(1002, "两次输入密码不一致"),
    unknown_1003(1003, "该手机号已注册，请直接登录"),
    unknown_1004(1004, "注册失败"),
    unknown_1005(1005, "用户不存在"),
    unknown_1006(1006, "用户账号或密码错误"),
    unknown_1007(1007, "原密码错误"),
    unknown_1008(1008, "新密码不能与原密码一致"),
    unknown_1009(1009, "添加标签失败"),
    unknown_1010(1010, "新作品开坑失败"),
    unknown_1011(1011, "删除书籍失败"),
    unknown_1012(1012, "查询书籍基本信息失败"),
    unknown_1026(1026, "文本内容不能少于100字"),
    unknown_1027(1027, "文本内容不能多余13000字"),
    unknown_1028(1028, "更新新章节内容失败"),
    unknown_1039(1039, "章节锁定失败"),
    unknown_1040(1040, "昵称已存在"),
    unknown_1013(1013, "用户关注作者失败"),
    unknown_1014(1014, "已关注该作者"),
    unknown_1015(1015, "未关注该作者"),
    unknown_1016(1016, "请不要自己关注自己"),
    unknown_1017(1017, "取消关注失败"),
    unknown_1018(1018, "收藏成功"),
    unknown_1019(1019, "取消收藏失败"),
    unknown_1020(1020, "已收藏书籍"),
    unknown_1021(1021, "未收藏书籍"),
    unknown_1022(1022, "发表一级评论成功"),
    unknown_1023(1023, "发表一级评论失败"),
    unknown_1024(1024, "回复二级评论失败"),
    unknown_1025(1025, "回复一级评论失败"),
    unknown_1041(1041, "查询我的评论失败"),
    unknown_1042(1042, "查询评论我的失败"),
    unknown_1043(1043, "帖子内容不能为空"),
    unknown_1044(1044, "发布帖子失败"),
    unknown_1045(1045, "修改帖子失败"),
    unknown_1046(1046, "删除帖子失败"),
    unknown_1047(1047, "未收藏帖子"),
    unknown_1048(1048, "已收藏帖子"),
    unknown_1049(1049, "主子您没有猫粮啦"),
    unknown_1050(1050, "购买失败"),
    unknown_1051(1051, "帖子已锁定"),
    unknown_1052(1052, "今日已签到"),
    unknown_1053(1053, "今日未签到"),
    unknown_1054(1054, "帖子标题不能为空"),
    unknown_1055(1055, "帖子id不能为空"),
    unknown_1056(1056, "公司id不能为空"),
    unknown_1057(1057, "收藏的目标id不能为空"),
    unknown_1058(1058, "收藏的类型不能为空"),
    unknown_1059(1059, "收藏的类型输入不对unknown_5555(帖子10 公司20),"),
    unknown_1060(1060, "收藏添加失败"),
    unknown_1061(1061, "已经收藏过了"),
    unknown_1062(1062, "余额不足"),
    unknown_1063(1063, "积分不足"),
    unknown_1064(1064, "积分不足"),
    unknown_1065(1065, "支付积分和金额与实际价格不符"),
    unknown_1066(1066, "查找的类型不能为空"),
    unknown_1067(1067, "查找的类型不存在"),
    unknown_1068(1068, "用户的真实姓名不能为空"),
    unknown_1069(1069, "用户的手机号码不能为空"),
    unknown_1070(1070, "红包数目大于金额"),
    unknown_1071(1071, "红包金额或数目不能等于零"),
    unknown_1072(1072, "请求的红包类型不存在"),
    unknown_1073(1073, "红包对应的目标帖子id不能为空"),
    unknown_1074(1074, "帖子红包的密令不能为空"),
    unknown_1075(1075, "商品id或者商品的类型不能为空"),
    unknown_1076(1076, "广告类型不能为空或者不存在"),
    unknown_1077(1077, "广告图片链接不能为空"),
    unknown_1078(1078, "广告图片跳转链接不能为空"),
    unknown_1079(1079, "广告图片跳转链接不能为空"),
    unknown_1080(1080, "已经加入了兼职"),
    unknown_1081(1081, "已经支付过了"),
    unknown_1082(1082, "已经领取过红包了"),
    unknown_1083(1083, "红包已领过或者被领完了"),
    unknown_1084(1084, "用户头像不能为空"),
    unknown_1085(1085, "用户还没有成为城市合伙人"),
    unknown_1086(1086, "广告没有位置了"),
    unknown_1087(1087, "经度不能为空"),
    unknown_1088(1088, "纬度不能为空"),
    unknown_1089(1089, "公司没入驻"),
    unknown_1090(1090, "电话号码不能为空"),
    unknown_1091(1091, "还没有加入兼职"),
    unknown_1092(1092, "还没有入驻公司不能成为城市合伙人"),
    unknown_1093(1093, "点赞的id 不能为空"),
    unknown_1094(1094, "已经点赞过了"),
    unknown_1095(1095, "手机号不能为空"),
    unknown_1096(1096, "短信发送失败"),
    unknown_1100(1100, "已发送验证码，5分钟内有效"),
    unknown_2000(2000, "添加信息失败"),
    unknown_2001(2001, "更新数据失败"),
    unknown_2002(2002, "查找的数据不存在"),
    unknown_3000(3000, "低于最低充值金额"),
    unknown_4000(4000, "搜索结束时间不得低于开始时间"),
    unknown_4001(4001, "微信退款失败"),
    unknown_4002(4002, "余额退款失败"),
    unknown_4003(4003, "积分退款失败"),
    unknown_4004(4004, "退款操作未完成"),
    unknown_4005(4005, "操作失败"),
    unknown_4006(4006, "参数缺失"),
    unknown_1097(1097, "输入的验证码不能为空"),
    unknown_1101(1101, "验证码已过期了"),
    unknown_1102(1102, "验证码输入有误"),
    unknown_1103(1103, "微信已绑定过手机号了"),
    unknown_1104(1104, "你是城市合伙人享受免费权限"),
    unknown_1105(1105, "查询不到对应的上级账户信息"),
    unknown_1106(1106, "资源共享ID不能为空"),
    unknown_1107(1107, "以下参数校验有问题"),
    unknown_1108(1108, "参数不在范围内"),
    unknown_1109(1109, "口令密码错误"),
    unknown_1110(1110, "红包已经领取完毕"),
    unknown_1111(1111, " 付款金额超出限制。低于最小金额1.00元或累计超过5000.00元"),
    unknown_1112(1112, "请勿重复提交"),
    unknown_1113(1113, "已经是城市合伙人了"),
    unknown_1114(1114, "等待审批，请勿重复提交"),
    unknown_1115(1115, "查无个人信息"),

    ;

    private Integer code;
    private String message;

    ErrCodeEnum(Integer code,
                String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
